import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import '@/styles/index.scss' // global css

import App from './App'
import router from './router'

import store from './store'

import '@/icons' // icon
import '@/permission' // permission control

import 'default-passive-events'

import api from '@/api/index.js'
import {plugin} from '@/plugins/index.js'
/**
 * If you don't want to use mock-server
 * you want to use MockJs for mock api
 * you can execute: mockXHR()
 *
 * Currently MockJs will be used in the production environment,
 * please remove it before going online ! ! !
 */


// set ElementUI lang to EN
// 如果想要中文版 element-ui，按如下方式声明
// Vue.use(ElementUI)
Vue.use(plugin)
Vue.config.productionTip = false
Vue.prototype.$API=api
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
